package com.changpay.zywy.adapter

import android.content.Context
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.changpay.zywy.R
import com.changpay.zywy.bean.ProgressBean
import com.changpay.zywy.wight.NumberProgressView

/**
 * Created by chenxz on 2018/4/22.
 */
class TodayTardAdapter(private val context: Context?, datas: MutableList<ProgressBean>)
    : BaseQuickAdapter<ProgressBean, BaseViewHolder>(R.layout.item_toady_trad, datas) {

    override fun convert(helper: BaseViewHolder?, item: ProgressBean?) {
        item ?: return
        helper ?: return
       val progress = helper.getView<NumberProgressView>(R.id.numberProgressBar)
        progress.setData(item.progress,item.name,item.number,item.position)
    }

}
